import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  payModel: boolean;
  cancelModel: boolean;
  confirmModel: boolean;
  orderType: number; //1、我的发布，2、我的接单
  orderList: any;
  pageNum: number;
  pageSize: number;
  totalPages: number;
  escortTradeStatus: string; //我的发布订单状态
  escortSnatchOrderStatus: string; //我的接单订单状态
  escortTradeId: string; //订单id
  harvestCode: string; //收货编码
  cancellationOptions: number; //取消类型
  cancellationReason: string; //取消原因
  price: number; //订单金额
  accountBalanceTotal: number; //可用余额
  ReleasedTab: [],//我的发布tab
  ReceivingTab: [],//我的接单tab
  points: {
    totalPoint: number;
    maxPoint: number;
    usePoint: number;
    pointConfig: SystemPointsConfigQueryResponse;
    deductionAmountOfPoints: number;
    integralDeductionSwitch: boolean;
  };
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;
  [name: string]: any;
};

export type IProps = IAllReducerProps & ActionType;

//自定义
export type IInfoProps = {};
export type IInfoState = {};
